<!DOCTYPE html>
<html>
<head>
    {include file="public/header" /}
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-btn-container">
            {if condition="$cate==1"}
            <span class="layui-btn layui-btn-sm " > 首页广告 </span>
            {else}
            <span class="layui-btn layui-btn-sm " > 我的页广告 </span>
            {/if}
        </div>

        <input type="hidden" name="cate" value="{$cate}">
        <script type="text/html" id="toolbarDemo">

            <div class="layui-btn-container">
                <button class="layui-btn layui-btn-normal layui-btn-sm data-add-btn" lay-event="add"> 添加</button>

            </div>
        </script>

        <table class="layui-hide" id="currentTableId" lay-filter="currentTableFilter"></table>

        <script type="text/html" id="currentTableBar">
            <a class="layui-btn layui-btn-normal layui-btn-xs data-count-edit" lay-event="edit">编辑</a>
            <a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" lay-event="delete">删除</a>
        </script>

    </div>
</div>
{include file="public/footer" /}


<script type="text/html" id="statusTpl">
    {{#  if(d.status=== 1){ }}
    <span class="layui-badge layui-bg-green">未上架</span>
    {{#  } else if(d.status=== 2) { }}
    <span class="layui-badge layui-bg-orange">展示中</span>
    {{#  } else { }}
    <span class="layui-badge layui-bg-blue">已下架</span>
    {{#  } }}
</script>

<script type="text/html" id="showTypeTpl">
    {{#  if(d.show_type=== 1){ }}
    <span class="layui-badge layui-bg-green">弹窗</span>
    {{#  } else if(d.show_type=== 2) { }}
    <span class="layui-badge layui-bg-orange">跳转</span>
    {{#  } else { }}
    <span class="layui-badge layui-bg-blue">详情</span>
    {{#  } }}
</script>

<script type="text/html" id="advertTypeTpl">
    {{#  if(d.advert_type=== 1){ }}
    首页广告
    {{#  } else if(d.advert_type=== 2) { }}
   我的页面广告1
    {{#  } else { }}
   我的页广告2
    {{#  } }}
</script>
<script type="text/html" id="logoTpl">
    {{#  if(d.imgurl){ }}
    <span class="layui-badge layui-bg-green" lay-event="thumb">点击查看图片</span>
    {{#  } else { }}
    未获取到图片信息
    {{#  } }}
</script>

<script type="text/html" id="linkTpl">
    {{#  if(d.bizpro_status=== 2){ }}
    <span class="layui-badge layui-bg-green">否</span>
    {{#  } else { }}
    <span class="layui-badge layui-bg-orange">是</span>
    {{#  } }}
</script>


<script src="/static/admin/adverbanner/index.js?v={$Think.const.TIMESTAMP}" charset="utf-8"></script>




</body>
</html>